﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Entregable.Models.Producto>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	NARS
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Crear</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Campos</legend>
            
            <div>
            <h1>
            Producto
            </h1>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Codigo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Codigo) %>
                <%: Html.ValidationMessageFor(model => model.Codigo) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Nombre) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombre)%>
                <%: Html.ValidationMessageFor(model => model.Nombre)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Marca) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Marca)%>
                <%: Html.ValidationMessageFor(model => model.Marca)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Stock) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Stock)%>
                <%: Html.ValidationMessageFor(model => model.Stock)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Origen) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Origen)%>
                <%: Html.ValidationMessageFor(model => model.Origen)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Modelo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Modelo)%>
                <%: Html.ValidationMessageFor(model => model.Modelo)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Tipo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Tipo)%>
                <%: Html.ValidationMessageFor(model => model.Tipo)%>
            </div>

            <div>
            <h1>
            Sede
            </h1>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Sede.Codigo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Sede.Codigo) %>
                <%: Html.ValidationMessageFor(model => model.Sede.Codigo) %>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Sede.Nombre) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Sede.Nombre) %>
                <%: Html.ValidationMessageFor(model => model.Sede.Nombre) %>
            </div>
            
            <p>
                <input type="submit" value="Crear" class="btn btn-primary" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la Lista", "Index") %>
    </div>

</asp:Content>

